package org.wangbao.model;



import java.util.HashMap;
import java.util.Map;



public class PubUrlArg {
	
	/**
	 * 期ID
	 */
	private String journalId;
	
	/**
	 * 期ID对应替换的日期格式
	 */
	private String dstr;
	
	/**
	 * 版ID
	 */
	private String versionId;
	
	/**
	 * 版ID对应替换的版名称
	 */
	private String vstr;
	
	/**
	 * 文章文件名称与PID的对应关系
	 */
	private Map<String, String> convertMap;

	public String getJournalId() {
		return journalId;
	}

	public void setJournalId(String journalId) {
		this.journalId = journalId;
	}

	public String getDstr() {
		return dstr;
	}

	public void setDstr(String dstr) {
		this.dstr = dstr;
	}

	public String getVersionId() {
		return versionId;
	}

	public void setVersionId(String versionId) {
		this.versionId = versionId;
	}

	public String getVstr() {
		return vstr;
	}

	public void setVstr(String vstr) {
		this.vstr = vstr;
	}

	public Map<String, String> getConvertMap() {
		return convertMap;
	}

	public void setConvertMap(Map<String, String> convertMap) {
		this.convertMap = convertMap;
	}
	
	public static void main(String[] args) {
		PubUrlArg self = new PubUrlArg();
		self.setJournalId("12");
		self.setDstr("06.24");
		self.setVersionId("22");
		self.setVstr("");
		Map<String, String> map = new HashMap<String, String>();
		map.put("A4FMKD410", "23"); // 文章文件名 : pid
		self.setConvertMap(map);
//		JSONObject jo = JSONObject.fromObject(self);
//		System.out.println(jo);
//		String postUrl = "http://114.112.190.115/buildFlash?visitPath=http://www.zhongsou.net/kuaibao/channel/13378682&args=" + jo.toString();
//		System.out.println(postUrl);
		// 生成的swf里块指向的URL为：xxx由args参数中的对相应关系替换。
		String url = "http://www.zhongsou.net/kuaibao/channel/13378682?pid=xxx&dstr=xxx&vstr=xxx";
		System.out.println(url);
	}

}
